Skip to content

Conversation

@pyramation
Copy link
Contributor

No description provided.

- Add private toUnqualifiedLocal method to LaunchQLMigrate class
- Enforces local package scope for deployed/skipped changes
- Throws error on cross-package changes to prevent silent bugs
- Update deploy and revert methods to use centralized logic
- Add test to verify functionality

Co-Authored-By: Dan Lynch <[email protected]>
- Remove type annotations from mock function parameters
- Add password field to PgConfig object
- Use 'as any' type assertions for LaunchQLMigrate constructor and deploy method

Co-Authored-By: Dan Lynch <[email protected]>
… in local-tracking-guard test

- Replace MigrateTestFixture with jest.mock approach following tag-fallback.test.ts pattern
- Mock pg-cache and transaction utilities to avoid requiring PostgreSQL database
- Add direct test of toUnqualifiedLocal method for cross-package error handling
- Keep existing TypeScript type annotations for strict compilation
- Both test cases now pass without database dependencies

Co-Authored-By: Dan Lynch <[email protected]>
…cking

- Replace jest.mock approach with MigrateTestFixture for proper pg-env configuration
- Use fixture.setupTestDatabase() which calls getPgEnvOptions() for database config
- Follow established testing patterns from basic-deployment.test.ts
- Add proper beforeEach/afterEach hooks for setup and cleanup
- Both test cases now work with real PostgreSQL database via pg-env

Co-Authored-By: Dan Lynch <[email protected]>
@pyramation pyramation merged commit db63642 into main Sep 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants